

<div class="clear"> </div>
<div class="box_2">
    <div class="title reg bold"> 
        <!--<a href="#" class="detail_search inline-block align_right fright">See all</a> -->
        <span class="inline-block align_left fleft" style="width: 590px"><h3 class="color_2"> <?= $this->management_model->get_version('CAR', $listing['info']->version)->version; ?> </h3></span> 
        <span class="color_3"><a href="javascript:history.back()">Go Back</a></span>
        <div class="clear"></div>
    </div>

    <div class="clear"> </div>

    <div id="inner">
        <div>
            <?= $listing['info']->comments; ?>
        </div>
        </br>
        <div class="fleft" style="width: 300px">
            <ul>
                <li> Asking Price : <span class="fright bold color_4"> Rs. <?= moneyFormat($listing['info']->price); ?></span> </li> 
                <li> Model Year : <span class="fright bold color_3"> <?= $listing['info']->make_year; ?> </span> </li>
                <li> Driven : <span class="fright bold color_3"> <?= moneyFormat($listing['info']->km_done); ?> Km</span> </li>
                <li> Color : <span class="fright bold color_3"> <?= $listing['info']->color; ?> </span> </li>

                <li> Registration : <span class="fright bold color_3"> <?= $listing['info']->reg_no; ?> </span> </li>
                <li> Registered at : <span class="fright bold color_3"> <?= $listing['info']->reg_at; ?> </span> </li>
                <li> Insurance : <span class="fright bold color_3"> <?= $listing['info']->insurance; ?> </span> </li>
                <li> Insurance valid upto: <span class="fright bold color_3"> <?= $listing['info']->insurance_month; ?>, <?= $listing['info']->insurance_year; ?></span> </li>
                <li> Posted By : <span class="fright bold color_3"> Individual </span></li>

            </ul>

        </div>
        <div class="fright" style="width: 300px">
            <ul class=" marg_bottom_2">
                <li> Posted on : <span class="fright bold color_3"> <?= $listing['info']->posted_on; ?></span> </li> 
                <li> Contact Person : <span class="fright bold color_3"> <?= $member['info']->first_name . ' ' . $member['info']->last_name; ?> </span> </li>
                <li> Location : <span class="fright bold color_3"> 
                        <?= $this->location_model->get_city_name($listing['info']->city) . ', ' .
                                $this->location_model->get_state_name($listing['info']->state); ?></span> 
                </li>
            </ul>
            <a href="<?= base_url(); ?>ajax/contact_seller/<?= $listing['info']->user; ?>" class="contact_seller fancybox.ajax inline-block button_search color_1 bold">Contact Seller </a>
            
        </div>
        <div class="clear"></div>

    </div>


</div> <!-- End of Box_2 -->

<!-- PHOTOES -->

<div class="clear"> </div>
<div class="box_2">
    <div class="title reg bold"> 
        <!--<a href="#" class="detail_search inline-block align_right fright">See all</a> -->
        <span class="inline-block align_left fleft" style="width: 590px"><h3 class="color_2"> Photos of <?= $this->management_model->get_version('CAR', $listing['info']->version)->version; ?> </h3></span> 
        <div class="clear"></div>
    </div>

    <div class="clear"> </div>

    <div id="inner">
        <?php
        if (sizeof($listing['photo']) > 0) {
            ?>
            <?php foreach ($listing['photo'] as $listing_photo): ?>
                <div class="multiple_photos">
                  
                    <a href="<?= base_url(); ?>assets/images/data/photo/<?= $listing_photo->description; ?>" class="fancybox" rel="gallery" >
                        <img src="<?= base_url(); ?>assets/images/data/photo/<?= $listing_photo->description; ?>" /></a>   
                </div>
            <?php endforeach; ?>

        <?php }else { ?>
            Sorry! No Image found !
        <?php } ?>
    </div>

    <div id="inner">
        <?php
        if (sizeof($listing['video']) > 0) {
            ?>
            <?php foreach ($listing['video'] as $listing_video): ?>
                <div class="multiple_photos">

                    <a class="fancybox-media" href="<?= $listing_video->description; ?>" >
                        <img src="<?= base_url(); ?>assets/images/video_icon.png" alt="Video" />
                    </a>


                </div>
            <?php endforeach; ?>

        <?php }else { ?>
            Sorry! No video found !
        <?php } ?>
    </div>


</div> <!-- End of Box_2 -->


